How to enable or disable SUIButton masking by script using Java
When SUIButton is not pressed
In your Java class, do the following:
public class YourClass extends Component {
    // boolean to control SUIMask activation of SUIButton
    public boolean value; // select the value (true or false) from the properties
    // creates a new SUIButton, @AutoWired selects the component from this object
    @AutoWired
    private SUIButton button;
    @Override
    public void start() {
    }
    @Override
    public void repeat() {
        // sets the SUIMask activation of SUIButton according to the value of the Boolean (true or false) "value"
        button.setNormalIgnoreMask(value);
    }
}
When SUIButton is pressed
In your Java class, do the following:
public class YourClass extends Component {
    // boolean to control SUIMask activation of SUIButton
    public boolean value; // select the value (true or false) from the properties
    // creates a new SUIButton, @AutoWired selects the component from this object
    @AutoWired
    private SUIButton button;
    public void start() {
    }
    public void repeat() {
        // sets the SUIMask activation of SUIButton according to the value of the Boolean (true or false) "value"
        button.setPressedIgnoreMask(button);
    }
}